package com.ruoyi.system.service.impl;


import com.ruoyi.system.domain.TeacherPerformance;
import com.ruoyi.system.mapper.TeacherPerformanceMapper;
import com.ruoyi.system.service.ITeacherPerformanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 教师绩效类型Service业务层处理
 * 
 * @author bearzz
 * @date 2024-01-22
 */
@Service
public class TeacherPerformanceServiceImpl implements ITeacherPerformanceService
{
    @Autowired
    private TeacherPerformanceMapper teacherPerformanceMapper;

    /**
     * 查询教师绩效类型
     * 
     * @param id 教师绩效类型主键
     * @return 教师绩效类型
     */
    @Override
    public TeacherPerformance selectTeacherPerformanceById(Long id)
    {
        return teacherPerformanceMapper.selectTeacherPerformanceById(id);
    }

    /**
     * 查询教师绩效类型列表
     * 
     * @param teacherPerformance 教师绩效类型
     * @return 教师绩效类型
     */
    @Override
    public List<TeacherPerformance> selectTeacherPerformanceList(TeacherPerformance teacherPerformance)
    {
        return teacherPerformanceMapper.selectTeacherPerformanceList(teacherPerformance);
    }

    /**
     * 新增教师绩效类型
     * 
     * @param teacherPerformance 教师绩效类型
     * @return 结果
     */
    @Override
    public int insertTeacherPerformance(TeacherPerformance teacherPerformance)
    {
        return teacherPerformanceMapper.insertTeacherPerformance(teacherPerformance);
    }

    /**
     * 修改教师绩效类型
     * 
     * @param teacherPerformance 教师绩效类型
     * @return 结果
     */
    @Override
    public int updateTeacherPerformance(TeacherPerformance teacherPerformance)
    {
        return teacherPerformanceMapper.updateTeacherPerformance(teacherPerformance);
    }

    /**
     * 批量删除教师绩效类型
     * 
     * @param ids 需要删除的教师绩效类型主键
     * @return 结果
     */
    @Override
    public int deleteTeacherPerformanceByIds(Long[] ids)
    {
        return teacherPerformanceMapper.deleteTeacherPerformanceByIds(ids);
    }

    /**
     * 删除教师绩效类型信息
     * 
     * @param id 教师绩效类型主键
     * @return 结果
     */
    @Override
    public int deleteTeacherPerformanceById(Long id)
    {
        return teacherPerformanceMapper.deleteTeacherPerformanceById(id);
    }
}
